.disk-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 标签页样式 */
.disk-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fafafa;
  border-radius: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.disk-tabs .ant-tabs-content {
  flex: 1;
  height: 100%;
  flex: 1;
  height: 0;
  overflow: hidden;
}

.disk-tabs .ant-tabs-tabpane {
  height: 100%;
  overflow: hidden;
}

/* 概览页样式 */
.disk-content {
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.partitions-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 16px;
}

.partition-item {
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.partition-item.virtual {
  background: #fafafa;
  opacity: 0.9;
}

.partition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.partition-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mountpoint {
  font-weight: 500;
}

.fstype {
  background: #f9f0ff;
  color: #722ed1;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
}

.disk-type {
  background: #f6ffed;
  color: #52c41a;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
}

.io-speed {
  color: #8c8c8c;
  font-size: 12px;
}

.usage-row {
  margin-top: 8px;
}

.usage-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
  color: #8c8c8c;
}

/* 健康状态页样式 */
.disk-health {
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.last-check {
  margin-bottom: 16px;
  color: #8c8c8c;
  flex-shrink: 0;
}

.disk-health .ant-table-wrapper {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.disk-health .ant-table-body {
  overflow-y: auto !important;
}

.text-warning {
  color: #ff4d4f;
}

.text-caution {
  color: #faad14;
}

/* 空间分析页样式 */
.disk-space {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.last-scan {
  margin-bottom: 16px;
  color: #8c8c8c;
  flex-shrink: 0;
}

.analysis-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
  overflow-y: auto;
  min-height: 0;
}

.analysis-card {
  height: 400px;
  flex-shrink: 0;
}

.analysis-card .ant-card-body {
  height: calc(100% - 57px);
  padding: 12px;
}

.analysis-card .ant-table-wrapper {
  height: 100%;
}

.analysis-card .ant-table {
  height: 100%;
}

.analysis-card .ant-table-container {
  height: 100%;
}

.analysis-card .ant-table-body {
  height: calc(100% - 39px) !important;
  overflow-y: auto !important;
}

/* 自定义滚动条样式 */
.partitions-list::-webkit-scrollbar,
.disk-health .ant-table-body::-webkit-scrollbar,
.io-content::-webkit-scrollbar,
.analysis-content::-webkit-scrollbar,
.analysis-card .ant-table-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}

.partitions-list::-webkit-scrollbar-thumb,
.disk-health .ant-table-body::-webkit-scrollbar-thumb,
.io-content::-webkit-scrollbar-thumb,
.analysis-content::-webkit-scrollbar-thumb,
.analysis-card .ant-table-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.partitions-list::-webkit-scrollbar-thumb:hover,
.disk-health .ant-table-body::-webkit-scrollbar-thumb:hover,
.io-content::-webkit-scrollbar-thumb:hover,
.analysis-content::-webkit-scrollbar-thumb:hover,
.analysis-card .ant-table-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.partitions-list::-webkit-scrollbar-track,
.disk-health .ant-table-body::-webkit-scrollbar-track,
.io-content::-webkit-scrollbar-track,
.analysis-content::-webkit-scrollbar-track,
.analysis-card .ant-table-body::-webkit-scrollbar-track {
  background-color: transparent;
}

/* IO分析页样式 */
.disk-io {
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.io-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 16px;
}

.io-card {
  height: 250px;
  flex-shrink: 0;
}

/* 基础信息样式 */
.disk-basic-info {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.disk-basic-info .info-section {
  margin-bottom: 24px;
}

.disk-basic-info .info-section:last-child {
  margin-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.disk-basic-info .section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #1f1f1f;
}

/* 新增：基础信息行布局 */
.basic-info-row {
  display: flex;
  gap: 24px;
}

.capacity-container {
  flex: 3;
}

.io-speed-container {
  flex: 2;
}

.disk-basic-info .capacity-info {
  padding: 16px;
  background: #fafafa;
  border-radius: 4px;
}

.disk-basic-info .capacity-details {
  margin-top: 8px;
  text-align: center;
  color: #666;
}

/* 新增：IO速度信息样式 */
.disk-basic-info .io-speed-info {
  padding: 16px;
  background: #fafafa;
  border-radius: 4px;
  height: calc(100% - 40px);  /* 减去标题的高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.disk-basic-info .speed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.disk-basic-info .speed-label {
  color: #666;
  font-size: 14px;
}

.disk-basic-info .speed-value {
  font-size: 16px;
  font-weight: 500;
}

.disk-basic-info .io-trend {
  padding: 16px;
  background: #fafafa;
  border-radius: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 确保图表容器填充剩余空间 */
.disk-basic-info .io-trend .echarts-for-react {
  flex: 1;
} 